using Microsoft.OpenApi.Models;


namespace Swashbuckle.AspNetCore.SwaggerGen;

/// <summary>
/// 隐藏 Abp相关的schemas
/// </summary>
public class HideAbpSchemaFilter : ISchemaFilter
{
    public void Apply(OpenApiSchema schema, SchemaFilterContext context)
    {
        context.SchemaRepository.Schemas.RemoveAll(item => item.Key.StartsWith("Volo."));
    }
}
